﻿using System;
using System.Windows.Forms;
using NanoERP.Infrastructure;

namespace NanoERP.BaseInfo
{
    //[Module("FrmSetBillNum")]
    public partial class FrmSetBillNum : ModuleForm
    {
        public FrmSetBillNum()
        {
            InitializeComponent();
        }

        public FrmSetBillNum(string num)
        {
            InitializeComponent();

            txtNum.Text = num;
        }

        private void button1_Click(object sender, EventArgs e)
        {
            if (txtNum.TextLength == 0)
            {
                txtNum.Focus();
                MessageBox.Show(@"请输入流水号.", @"提示消息", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }

            this.Tag = txtNum.Text;
            this.DialogResult = DialogResult.OK;
        }
    }
}
